package com.fahai.web.vo;/**
 * Created by Lilinjun on 17/5/24.
 */

import com.fahai.utils.DateUtil;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

/**
 * 套餐
 *
 * @author
 * @create 2017-05-24 下午5:36
 **/
@Data
public class CardListVo {

    private Integer tcid;

    private String tcnumber;

    private Integer tctype;

    private String zdlscode;

    private Integer proid;

    private Integer zdyhcode;

    private String tcName;

    private String tcSn;

    private Integer publishUnum;

    private Integer publishNum;

    private String tcTag;

    private String tcRemark;


    private Integer freeTime;

    private Integer callPrice;

    private Integer wordTime;

    private Integer wordPrice;

    private Integer showPrice;



    private Timestamp tcStarTimeStr;
    private String tcStarTime;
    private String tcEndTime;
    public String getTcStarTimeStr() {
        if (null != this.tcStarTime) {
            return DateUtil.StringToString(this.tcStarTime, "yyyy-MM-dd HH:mm:ss" ,"yyyy-MM-dd HH:mm:ss");
        } else {
            return "";
        }
    }

    private Timestamp tcEndTimeStr;


    public String getTcEndTimeStr() {
        {
            if (null != this.tcEndTime) {
                return DateUtil.StringToString(this.tcEndTime, "yyyy-MM-dd HH:mm:ss" ,"yyyy-MM-dd HH:mm:ss");
            } else {
                return "";
            }
        }
    }


    private Integer tcisopen;

    private Integer tcstats;

    private Date createTime;

    private Date updateTime;

    private String bak;

    private String bak1;

    private String bak2;

    private String ordertype;
    private String cobject;
    private String tcPublish;
    private String lawyername;
    private String lawyerPhone;
    private String tctypestr;

    public String getTctypestr() {
        if (null == tctype) {
            return "未知";
        }
        switch (tctype) {
            case 1:
                return "【FREE】通用计次卡";
            case 2:
                return "【FREE】专用计次卡";
            case 3:
                return "【SKU】通用充值卡";
            case 4:
                return "【SKU】专用计次卡";
            default:
                return "未知";

        }
    }


    public Integer getTcid() {
        return tcid;
    }

    public void setTcid(Integer tcid) {
        this.tcid = tcid;
    }

    public String getTcnumber() {
        return tcnumber;
    }

    public void setTcnumber(String tcnumber) {
        this.tcnumber = tcnumber == null ? null : tcnumber.trim();
    }

    public Integer getTctype() {
        return tctype;
    }

    public void setTctype(Integer tctype) {
        this.tctype = tctype;
    }

    public String getZdlscode() {
        return zdlscode;
    }

    public void setZdlscode(String zdlscode) {
        this.zdlscode = zdlscode == null ? null : zdlscode.trim();
    }

    public Integer getProid() {
        return proid;
    }

    public void setProid(Integer proid) {
        this.proid = proid;
    }

    public Integer getZdyhcode() {
        return zdyhcode;
    }

    public void setZdyhcode(Integer zdyhcode) {
        this.zdyhcode = zdyhcode;
    }

    public String getTcName() {
        return tcName;
    }

    public void setTcName(String tcName) {
        this.tcName = tcName == null ? null : tcName.trim();
    }

    public String getTcSn() {
        return tcSn;
    }

    public void setTcSn(String tcSn) {
        this.tcSn = tcSn == null ? null : tcSn.trim();
    }

    public Integer getPublishUnum() {
        return publishUnum;
    }

    public void setPublishUnum(Integer publishUnum) {
        this.publishUnum = publishUnum;
    }

    public Integer getPublishNum() {
        return publishNum;
    }

    public void setPublishNum(Integer publishNum) {
        this.publishNum = publishNum;
    }

    public String getTcTag() {
        return tcTag;
    }

    public void setTcTag(String tcTag) {
        this.tcTag = tcTag == null ? null : tcTag.trim();
    }

    public String getTcRemark() {
        return tcRemark;
    }

    public void setTcRemark(String tcRemark) {
        this.tcRemark = tcRemark == null ? null : tcRemark.trim();
    }

    public String getTcPublish() {
        return tcPublish;
    }

    public void setTcPublish(String tcPublish) {
        this.tcPublish = tcPublish == null ? null : tcPublish.trim();
    }

    public Integer getFreeTime() {
        return freeTime;
    }

    public void setFreeTime(Integer freeTime) {
        this.freeTime = freeTime;
    }

    public Integer getCallPrice() {
        return callPrice;
    }

    public void setCallPrice(Integer callPrice) {
        this.callPrice = callPrice;
    }

    public Integer getWordTime() {
        return wordTime;
    }

    public void setWordTime(Integer wordTime) {
        this.wordTime = wordTime;
    }

    public Integer getWordPrice() {
        return wordPrice;
    }

    public void setWordPrice(Integer wordPrice) {
        this.wordPrice = wordPrice;
    }

    public Integer getShowPrice() {
        return showPrice;
    }

    public void setShowPrice(Integer showPrice) {
        this.showPrice = showPrice;
    }


    public Integer getTcisopen() {
        return tcisopen;
    }

    public void setTcisopen(Integer tcisopen) {
        this.tcisopen = tcisopen;
    }

    public Integer getTcstats() {
        return tcstats;
    }

    public void setTcstats(Integer tcstats) {
        this.tcstats = tcstats;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getBak() {
        return bak;
    }

    public void setBak(String bak) {
        this.bak = bak == null ? null : bak.trim();
    }

    public String getBak1() {
        return bak1;
    }

    public void setBak1(String bak1) {
        this.bak1 = bak1 == null ? null : bak1.trim();
    }

    public String getBak2() {
        return bak2;
    }

    public void setBak2(String bak2) {
        this.bak2 = bak2 == null ? null : bak2.trim();
    }
}
